FROM registry.ap-southeast-1.aliyuncs.com/coin900/java:1.8_162
ENV JAVA_HOME /usr/jdk1.8.0_162
ENV PATH ${PATH}:${JAVA_HOME}/bin

RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* 

ADD docker-entrypoint.sh /root/
RUN chmod +x /root/docker-entrypoint.sh
ADD target/coin-web.jar /usr/share/coin-ico-web/coin-web.jar
COPY target/classes/assets/ /usr/share/coin-ico-web/assets/

ENTRYPOINT ["/root/docker-entrypoint.sh"]